package com.probox.common.core.enums;

/**
 * @author Kite
 * @date 2021/7/27
 */
public enum WechatLiveStatus {
    underway("101", "直播中"),
    no_started("102", "未开始"),
    finished("103", "已结束"),
    ban("104", "禁播"),
    suspend("105", "暂停"),
    abnormal("106", "异常"),
    past("107","已过期");


    private WechatLiveStatus(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for (DataStatus oe : DataStatus.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
    }
